package com.tinem.platform.module.pojo.vo.error;

import com.tinem.platform.module.starter.sdk.MessageCode;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className PlatformException
 * @description TODO
 * @site 
 * @company 
 * @create 2020-06-19 15:50
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PlatformException extends RuntimeException{
    /**
	 * 
	 */
	private static final long serialVersionUID = -6957721243011662870L;
    MessageCode code;
    Object[] args;
    public PlatformException(MessageCode code, Object... args){
        super(code.getMessage(args));
        this.code=code;
        this.args = args;
    }
}
